package com.cy.zs.hp.controller.feign.service;

import com.cy.zs.hp.controller.feign.service.impl.DoctorServiceFB;
import com.cy.zs.hp.model.HisDoctor;


import com.cy.zs.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "hp-doctors", fallback = DoctorServiceFB.class)
public interface IHisDoctorFeignService {

    @GetMapping("hp/hisDoctor/{doctorId}")
    JsonResult<HisDoctor> findByDoctorId(@PathVariable Integer doctorId);

    @GetMapping("hp/schedulingTable/{doctorId}/{appointmentTime}")
    JsonResult setdoctor(@PathVariable Integer doctorId, @PathVariable String appointmentTime);
}
